/**
 * 
 */

package com.chengyu.eyc.constant;

/**
 * @author kevin
 *
 */
public final class EycConstants {

    public static final class CacheKey {

        /**
         * @return
         */
        public static String getAccessTokenKey(String userId) {
            StringBuilder key = new StringBuilder("accessToken");
            return key.append(":").append(userId).toString();
        }

        public static String getVerifyCdeKey(String to) {
            StringBuilder key = new StringBuilder("verifyCde");
            return key.append(":").append(to).toString();
        }

        private CacheKey() {

        }

    }

    /**
     * 微信小程序获取secret_key、openid接口
     */
    public static final String JSCODE_2_SESSION_URL = "https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code&connect_redirect=1";

    /**
     * 获取ACCESS_TOKEN接口
     */
    public static final String ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s";

    /**
     * 驾驶证OCR识别接口
     */
    public static final String DRIVING_LICENSE_URL = "https://api.weixin.qq.com/cv/ocr/drivinglicense?img_url=%s&access_token=%s";

    /**
     * 行驶证OCR识别接口
     */
    public static final String DRIVING_URL = "https://api.weixin.qq.com/cv/ocr/driving?type=photo&img_url=%s&access_token=%s";

    public static final String SUCCESS = "SUCCESS";

    public static final String ACCESS_TOKEN = "access_token";

    public static final String VERIFY_CODE = "verifyCode";
    

    /**
     * 分页大小
     */
    public static final String PAGE_SIZE = "pageSize";

    /**
     * 分页Index
     */
    public static final String PAGE_NUMBER = "pageNumber";

    public static final String JWT_SECERT = "!1@wsR&^";
    

    /**
     * 
     */
    public static final String TOKEN = "token";
    
    public static final String USER_ID = "userId";
    
    public static final String EXCEL_TEMPLATE = "excelTemplate/";

    private EycConstants() {

    }

}
